import akshare as ak
import pandas as pd

#
# szzs = ak.stock_zh_index_daily(symbol="sh000001")
#
# print(szzs)
#
# szzs_df = pd.DataFrame(szzs, columns=["date", "open", "high", "low", "close", "volume"])
#
# szzs_df.to_csv("data/data.csv", index=False)
#


stock_zh_a_hist_df = ak.stock_zh_a_hist(symbol="600519", period="daily", start_date=None, end_date=None)
print(stock_zh_a_hist_df)
stock_zh_a_hist_df.to_csv("data/gzmt.csv")  # 获取贵州茅台的历史数据
